<template>
  <div>
    <div v-loading="loading" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      loading: false,
      token: "",
    };
  },
  created() {
    console.log(123);
    // 从URL查询参数中获取token
    if (this.$route.query.token) {
      this.token = this.$route.query.token;
      console.log("截取到token:", this.token);
      this.$store.dispatch("user/mobileLogin", this.token);
    }
  },
  methods: {},
};
</script>

<style scoped></style>
